<% layout('/layouts/default.html', {title: '工作安排', libs: ['validate','fileupload']}){ %>
<div class="main-content">
	<div class="box box-main">
		<#form:form id="inputForm" model="${taskReceiveFour}" action="${ctx}/taskdeploy/dcSupTaskInfoRefine/doTransfer" method="post" class="form-horizontal">
			<div class="box-body">
				<div class="row" style="height: 70px;">
					<div class="col-xs-12" style="margin-top: 20px;">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required">*</span> 选择责任人：<i class="fa icon-question hide"></i></label>
							<div class="col-sm-8">
								<#form:hidden path="id"/>
                                <#form:hidden path="decomposeTaskId"/>
                                <#form:hidden path="leaderOrgCode"/>
                                    <#form:listselect title="用户选择"
                                    url="${ctx}/sys/empUser/customizedUserSelect" allowClear="false"
                                    labelPath="transferName" id="transferCode2" path="transferCode" class="form-control required"
                                    checkbox="false" itemCode="userCode" itemName="userName"/>
                             </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="box-footer">
                        <div class="row" style="text-align: right;">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-sm btn-primary" id="btnSubmit"><i class="fa fa-check"></i> ${text('确 定')}</button>&nbsp;
                                <button type="button" class="btn btn-sm btn-default" id="btnCancel" onclick="js.closeCurrentTabPage()"><i class="fa fa-reply-all"></i> ${text('关 闭')}</button>
                            </div>
                        </div>
                    </div>
                </#form:form>
            </div>
        </div>
        <% } %>
<script>
        $("#inputForm").validate({
            submitHandler: function(form){
                js.ajaxSubmitForm($(form), function(data){
                    js.showMessage(data.message);
                    if(data.result == Global.TRUE){
                        // location.reload();
                        // $('#dataGrid').dataGrid('refresh', 1, 20);
                        js.closeCurrentTabPage(function(contentWindow){
                            contentWindow.page();
                        });
                    }
                }, "json");
            }
        });


</script>